#!/bin/sh

cp -f chrome/content/kapiland/kapiland.js chrome/content/kapiland/kapiland.source.js
cp -f chrome/content/kapiland/localisation.js chrome/content/kapiland/localisation.source.js
cp -f chrome/content/kapiland/kl_main.js chrome/content/kapiland/kl_main.source.js
cp -f chrome/content/kapiland/pref.js chrome/content/kapiland/pref.source.js
cp -f chrome/content/kapiland/kapitool.js chrome/content/kapiland/kapitool.source.js

yuicompressor -o chrome/content/kapiland/kapiland.js chrome/content/kapiland/kapiland.source.js
yuicompressor -o chrome/content/kapiland/localisation.js chrome/content/kapiland/localisation.source.js
yuicompressor -o chrome/content/kapiland/kl_main.js chrome/content/kapiland/kl_main.source.js
yuicompressor -o chrome/content/kapiland/pref.js chrome/content/kapiland/pref.source.js
yuicompressor -o chrome/content/kapiland/kapitool.js chrome/content/kapiland/kapitool.source.js


./create.sh

# Use move which will also clean-up the old files
mv -f chrome/content/kapiland/kapiland.source.js chrome/content/kapiland/kapiland.js
mv -f chrome/content/kapiland/localisation.source.js chrome/content/kapiland/localisation.js
mv -f chrome/content/kapiland/kl_main.source.js chrome/content/kapiland/kl_main.js
mv -f chrome/content/kapiland/pref.source.js chrome/content/kapiland/pref.js
mv -f chrome/content/kapiland/kapitool.source.js chrome/content/kapiland/kapitool.js



jacksum -a sha1 KapiSkript.xpi